wayland: Support scaling of theme based cursors
authorJonas Ådahl <jadahl@gmail.com>
Fri, 13 Mar 2015 07:40:18 +0000 (15:40 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Mon, 16 Mar 2015 11:53:37 +0000 (19:53 +0800)
commit465647e964ebdfab6ee9aae14537a3339e60b2be
treedd1ef8cc6848ae2b87dd2cf2059b8cf854a0364d
parent7b2cdabc2e6eba035a8c74f0421639ea5230031d
wayland: Support scaling of theme based cursors

Support scaling of cursors created from themes. The default scale is
always 1, but if the pointer cursor surface enters an output with a
higher scale, load the larger version of the cursor theme and use the
image from that theme.

This assumes the theme size is set to one that fits with an output scale
= 1.

https://bugzilla.gnome.org/show_bug.cgi?id=746141
gdk/wayland/gdkcursor-wayland.c
gdk/wayland/gdkdevice-wayland.c
gdk/wayland/gdkdisplay-wayland.c
gdk/wayland/gdkdisplay-wayland.h
gdk/wayland/gdkprivate-wayland.h